package com.gmcc.docmanager.control;

import com.gmcc.docmanager.entity.DocumentList;
import com.gmcc.docmanager.loader.Response;

public class SearchDocumentListResponse extends Response {

	private DocumentList documentList;

	public SearchDocumentListResponse() {

	}

	public SearchDocumentListResponse(Response response) {
		setCode(response.getCode());
		setDescription(response.getDescription());
		if (response.getResponseObject() != null
				&& response.getResponseObject() instanceof DocumentList) {
			setDocumentList((DocumentList) response.getResponseObject());
		}
	}

	public DocumentList getDocumentList() {
		return documentList;
	}

	public void setDocumentList(DocumentList documentList) {
		this.documentList = documentList;
	}

}
